<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>添加公告</title>
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/common.css" type="text/css" />
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/sorttable.js'></script>
			
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/jquery-latest.pack.js'></script>			
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/noConflictOfJquery.js'></script>
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/forCSS.js'></script>
		<script type='text/javascript'>
			$j(function(){
				tbCSS();
			})
		</script>
			
	</head>

	<body>
		<div id="page_container">
			<%@include file="nav.jsp"%>
			<h2>
				管理公告
			</h2>
			<table class="table_common sortable table_list_style" width="600px" rowclass="row_odd,row_even">
				<tr class="row_head">
					<th width="80px">
						发布时间
					</th>
					<th  width="380px">
						公告标题
					</th>
					<th width="80px">
						发布人
					</th>
					<th width="30px">
						编辑
					</th>
					<th width="30px">
						删除
					</th>
				</tr>
				<s:iterator value="sl" status="st">
					<s:hidden name="systemannouncementid" />
					<s:hidden value="systemannouncementind" />
					<s:if test="#st.odd==true"><tr class="row_odd">
					</s:if>
					<s:else><tr class="row_even">
					</s:else>
					<td>
						<s:date name="systemannouncementposttime" format="yyyy-MM-dd" />
					</td>
					<td>
						<s:property value="systemannouncementtitle" />
					</td>
					<td>
						<s:property value="systemannouncementposter" />
					</td>
					<td>
						<a
							href="editsystemannouncementbyid.action?systemannouncementid=${systemannouncementid}"><img
								src="<%=request.getContextPath()%>/images/114.gif" /> </a>
					</td>
					<td>
						<a
							href="deletesystemannouncementbyid.action?systemannouncementid=${systemannouncementid}"
							onclick="javascript: return window.confirm('确定删除吗?')"><img
								src="<%=request.getContextPath()%>/images/083.gif" /> </a>
					</td>

				</s:iterator>
			</table>


			<div class="navigator">
				共
				<s:property value="totalRows" />
				条&nbsp; 第
				<s:property value="currentPage" />
				页&nbsp; 共
				<s:property value="pager.getTotalPages()" />
				页&nbsp;
				<a
					href="<s:url value="/systemannouncement/listallsystemannouncement.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'first'"/>
       
      </s:url>">首页</a>
				<a
					href="<s:url value="/systemannouncement/listallsystemannouncement.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'previous'"/>
      </s:url>">上一页</a>
				<a
					href="<s:url value="/systemannouncement/listallsystemannouncement.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'next'"/>
      </s:url>">下一页</a>
				<a
					href="<s:url value="/systemannouncement/listallsystemannouncement.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'last'"/>
      </s:url>">尾页</a>
			</div>
		</div>
	</body>
</html>
